home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1995 August: Tool Chest / Dev.CD Aug 95 TC / Dev.CD Aug 95 TC.toast / New System Software Extensions / QuickDraw™ GX 1.1.2 / Programming Stuff / Power Mac Development tips < prev    next >
Encoding:
Text File  |  1995-04-10  |  1.9 KB  |  43 lines  |  [ttro/ttxt]

  1. This note covers information which is specific to developing with QuickDraw GX for on a Power Macintosh. This note contain the following sections:
  2.  
  3. • Setting up QuickDraw GX v1.0.1 to run on a Power Macintosh
  4. • Building Native Power Macintosh applications
  5. • Caveats in the Libraries
  6.  
  7.  
  8. Setting up QuickDraw GX v1.0.1 to run on a Power Macintosh:
  9. The build included in the CD requires System 7.1.2 GM or later to run QuickDraw GX v1.0.1 on a Power Macintosh.
  10.  
  11. The  QuickDraw GX v1.0.1 installer will install a FAT or THIN (i.e. only 68k) binary, depending on the computer you're installing on, and whether or not you've asked to do an installation for "any machine."
  12.  
  13.  
  14. Building Native Power Macintosh applications:
  15.  
  16. In the "Development Stuff:QuickDraw™ GX Interfaces & Libs:PPCLibraries:" folder, you will find the file QuickDrawGXLib.xcoff.  This is the file that you will need to link when creating a Power Macintosh native application that uses QuickDraw GX and it contains all the entry points for the various traps that make up QuickDraw  GX. 
  17.  
  18. TIME SAVER!  To find the samples which have been compiled FAT using MPW or Metrowerks, see the "Directory of Samples" document within the "Sample Code" folder.  Look for samples that have been built using Metrowerks PPC and MPW PPCC.
  19.  
  20. MPW
  21.  
  22. The make files for several samples have been updated to support "weak linking."  Please see their makefiles for comments regarding "weak linking".
  23.  
  24. Metrowerks
  25.  
  26. To make FAT builds from Metrowerks, you need to make a 68K and a PPC build.  Then, using ResEdit, copy the CODE, DATA, and XREF resources from the 68K build into the PPC one.  You now have a FAT build for both 68K and PPC machines.
  27.  
  28. Regarding weak linking in Metrowerks: the feature is rather hidden.  You need to click on the triangle next to the QuickDrawGXLib.xcoff and in the popup menu which appears, specify weak linking.
  29.  
  30.  
  31. Caveats in the Libraries:
  32. The call NewShapeMany does not work.  Don't use it.
  33.  
  34. g 6/27/94 pla f
  35. g 8/30/94 dmh f
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.